
import {
  ChromeFilled,
  CrownFilled,
  UserOutlined,
  TabletFilled,
  FileOutlined,
  BorderOutlined, //  我的资料
  MailOutlined, //  资料中心
  AlignLeftOutlined, //  我的资料
} from '@ant-design/icons';
import { BarsOutlined, CopyrightOutlined, FolderOpenOutlined, LinkOutlined } from '@ant-design/icons';
import { CloudOutlined, ControlOutlined, ExclamationOutlined, FileFilled, RedEnvelopeFilled, SmileFilled } from '@ant-design/icons';


export default {
  route: {
    path: '/',
    /* 登陆 */
    redirect: '/login',
    routes: [
      {
        path: '/welcome',
        exact: true,
        icon: <CrownFilled />,
        routes: [
          {
            path: '/welcome/market',
            name: '销售门户',
            icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
          },
          {
            path: '/welcome/work',
            name: '日常工作',
            icon: <CrownFilled />,
          },
        ],
      },

      // 库存管理
      // {
      //   icon: (
      //     <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/5.png" />
      //   ),
      // }


      /* 销售管理 */
      {
        name: '销售管理',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/33.png" />
        ),
        path: '/salesManage/Sales_management',
        routes: [
          {
            path: '/salesManage/Sales_management',
            name: '  ',
            component: '@/pages/Sales_management/index',
            routes: [
              {
                exact: true,
                name: '客服',
                path: '/salesManage/Sales_management/customer_service',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                routes: [
                  {
                    exact: true,
                    name: '客户信息',
                    path: '/salesManage/Sales_management/customer_service/customer_info',
                    icon: <FolderOpenOutlined />,
                    wrappers: ['@/wrappers/auth'],
                    routes: [
                      {
                        icon: <BarsOutlined />,
                        name: '新增客户',
                        path: "/salesManage/Sales_management/customer_service/customer_info/add_user",
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/customer_service/customer_info/add_user',
                      },
                      {
                        icon: <BarsOutlined />,
                        name: '洽谈进展',
                        path: "/salesManage/Sales_management/customer_service/customer_info/negotiation",
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/customer_service/customer_info/negotiation',
                      },
                      {
                        icon: <BarsOutlined />,
                        name: '待分配客户列表',
                        path: "/salesManage/Sales_management/customer_service/customer_info/wait",
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/customer_service/customer_info/WaitUser',
                      },
                      {
                        icon: <BarsOutlined />,
                        name: '已分配客户列表',
                        path: "/salesManage/Sales_management/customer_service/customer_info/already",
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/customer_service/customer_info/already',
                      },
                      {
                        icon: <BarsOutlined />,
                        name: '我的客户列表',
                        path: "/salesManage/Sales_management/customer_service/customer_info/mylist",
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/customer_service/customer_info/mylist',
                      },
                      {
                        icon: <BarsOutlined />,
                        name: '全部客户列表',
                        path: "/salesManage/Sales_management/customer_service/customer_info/allList",
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/customer_service/customer_info/allList',
                      },
                      {
                        icon: <BarsOutlined />,
                        name: '客户跟进记录列表',
                        path: "/salesManage/Sales_management/customer_service/customer_info/progressList",
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/customer_service/customer_info/progressList',
                      },
                    ]
                  },
                  // 跟进点评
                  {
                    name: '跟进点评',
                    path: '/salesManage/Sales_management/customer_service/yelp',
                    icon: <FolderOpenOutlined />,
                    wrappers: ['@/wrappers/auth'],
                    routes: [
                      {
                        icon: <BarsOutlined />,
                        name: '我给下属的点评',
                        path: "/salesManage/Sales_management/customer_service/yelp/lower_yelp",
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/customer_service/yelp/lower_yelp',
                      },
                      {
                        icon: <BarsOutlined />,
                        name: '上级给我的点评',
                        path: "/salesManage/Sales_management/customer_service/yelp/upper_yelp",
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/customer_service/yelp/upper_yelp',
                      }
                    ]
                  }
                ]
              },
              {
                exact: true,
                name: "项目管理",
                path: '/salesManage/Sales_management/project_admin',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                routes: [
                  {
                    name: "新增项目",
                    exact: true,
                    path: '/salesManage/Sales_management/project_admin/addProject',
                    icon: <FolderOpenOutlined />,
                    wrappers: ['@/wrappers/auth'],
                    component: '@/pages/Sales_management/project_admin/addProject',
                  },
                  {
                    name: "项目列表",
                    exact: true,
                    path: '/salesManage/Sales_management/project_admin/projectList',
                    icon: <FolderOpenOutlined />,
                    wrappers: ['@/wrappers/auth'],
                    component: '@/pages/Sales_management/project_admin/projectList',
                  },
                  {
                    name: "项目设置",
                    exact: true,
                    path: '/salesManage/Sales_management/project_admin/setup',
                    icon: <FolderOpenOutlined />,
                    wrappers: ['@/wrappers/auth'],
                    routes: [
                      {
                        name: "设置项目分类",
                        exact: true,
                        path: '/salesManage/Sales_management/project_admin/setup/fenlei',
                        icon: <FolderOpenOutlined />,
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/project_admin/setup/fenlei',
                      },
                      {
                        name: "设置项目阶段",
                        exact: true,
                        path: '/salesManage/Sales_management/project_admin/setup/jieduan',
                        icon: <FolderOpenOutlined />,
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/project_admin/setup/jieduan',
                      },
                      {
                        name: "设置项目状态",
                        exact: true,
                        path: '/salesManage/Sales_management/project_admin/setup/status',
                        icon: <FolderOpenOutlined />,
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/project_admin/setup/status',
                      },
                      {
                        name: "设置项目来源",
                        exact: true,
                        path: '/salesManage/Sales_management/project_admin/setup/origin',
                        icon: <FolderOpenOutlined />,
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/Sales_management/project_admin/setup/origin',
                      },
                    ]
                  },
                ]

              },
              {
                exact: true,
                name: "报价管理",
                path: '/salesManage/Sales_management/offer_admin',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                component: '@/pages/Sales_management/offer_admin/index',
              },
              {
                exact: true,
                name: "销售合同",
                path: '/salesManage/Sales_management/sale_contract',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                component: '@/pages/Sales_management/sale_contract/index',
              },
              {
                exact: true,
                name: "销售退货",
                path: '/salesManage/Sales_management/sale_return',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                component: '@/pages/Sales_management/sale_return/index',
              },
              {
                exact: true,
                name: "售后管理",
                path: '/salesManage/Sales_management/aftermarket',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                component: '@/pages/Sales_management/aftermarket/index',
              },
              {
                exact: true,
                name: "竞争对手",
                path: '/salesManage/Sales_management/competitor',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                component: '@/pages/Sales_management/competitor/index',
              },
              {
                exact: true,
                name: "销售利润分析",
                path: '/salesManage/Sales_management/profit_analysis',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                component: '@/pages/Sales_management/profit_analysis/index',
              },
              // {
              //   // exact: true,
              //   name: '项目管理',
              //   path: '/salesManage/projectManagement',
              //   icon: <FolderOpenOutlined />,
              //   wrappers: ['@/wrappers/auth'],
              //   routes: [
              //     {
              //       // exact: true,
              //       name: '新增项目',
              //       path: '/salesManage/projectManagement/addProject',
              //       icon: <FolderOpenOutlined />,
              //       wrappers: ['@/wrappers/auth'],
              //     },
              //     {
              //       // exact: true,
              //       name: '项目列表',
              //       path: '/salesManage/projectManagement/addList',
              //       icon: <FolderOpenOutlined />,
              //       wrappers: ['@/wrappers/auth'],
              //     },
              //     {
              //       // exact: true,
              //       name: '项目设置',
              //       path: '/salesManage/projectManagement/projectShezhi',
              //       icon: <FolderOpenOutlined />,
              //       wrappers: ['@/wrappers/auth'],
              //       routes: [
              //         {
              //           // exact: true,
              //           name: '设置项目分类',
              //           path: '/salesManage/projectManagement/projectShezhi/fenlei',
              //           icon: <FolderOpenOutlined />,
              //           wrappers: ['@/wrappers/auth'],
              //         },
              //         {
              //           // exact: true,
              //           name: '设置项目阶段',
              //           path: '/salesManage/projectManagement/projectShezhi/jieduan',
              //           icon: <FolderOpenOutlined />,
              //           wrappers: ['@/wrappers/auth'],
              //         },
              //         {
              //           // exact: true,
              //           name: '设置项目状态',
              //           path: '/salesManage/projectManagement/projectShezhi/status',
              //           icon: <FolderOpenOutlined />,
              //           wrappers: ['@/wrappers/auth'],
              //         },
              //       ]
              //     },
              //   ]
              // },
              // {
              //   // exact: true,
              //   name: '报价管理',
              //   path: '/plan/PlanSetting',
              //   icon: <FolderOpenOutlined />,
              //   wrappers: ['@/wrappers/auth'],
              //   routes: [
              //     {
              //       exact: true,
              //       icon: <BarsOutlined />,
              //       name: '计划类型',
              //       path: '/plan/PlanSetting/planType/planType',
              //       wrappers: ['@/wrappers/auth'],
              //       component: '@/pages/plan/PlanSetting/planType/planType'
              //     },
              //   ]
              // },
              // {
              //   // exact: true,
              //   name: '销售合同',
              //   path: '/plan/PlanSetting',
              //   icon: <FolderOpenOutlined />,
              //   wrappers: ['@/wrappers/auth'],
              //   routes: [
              //     {
              //       exact: true,
              //       icon: <BarsOutlined />,
              //       name: '计划类型',
              //       path: '/plan/PlanSetting/planType/planType',
              //       wrappers: ['@/wrappers/auth'],
              //       component: '@/pages/plan/PlanSetting/planType/planType'
              //     },
              //   ]
              // },
              // {
              //   // exact: true,
              //   name: '销售退货',
              //   path: '/plan/PlanSetting',
              //   icon: <FolderOpenOutlined />,
              //   wrappers: ['@/wrappers/auth'],
              //   routes: [
              //     {
              //       exact: true,
              //       icon: <BarsOutlined />,
              //       name: '计划类型',
              //       path: '/plan/PlanSetting/planType/planType',
              //       wrappers: ['@/wrappers/auth'],
              //       component: '@/pages/plan/PlanSetting/planType/planType'
              //     },
              //   ]
              // },
              // {
              //   // exact: true,
              //   name: '售后管理',
              //   path: '/plan/PlanSetting',
              //   icon: <FolderOpenOutlined />,
              //   wrappers: ['@/wrappers/auth'],
              //   routes: [
              //     {
              //       exact: true,
              //       icon: <BarsOutlined />,
              //       name: '计划类型',
              //       path: '/plan/PlanSetting/planType/planType',
              //       wrappers: ['@/wrappers/auth'],
              //       component: '@/pages/plan/PlanSetting/planType/planType'
              //     },
              //   ]
              // },
              // {
              //   // exact: true,
              //   name: '竞争对手',
              //   path: '/plan/PlanSetting',
              //   icon: <FolderOpenOutlined />,
              //   wrappers: ['@/wrappers/auth'],
              //   routes: [
              //     {
              //       exact: true,
              //       icon: <BarsOutlined />,
              //       name: '计划类型',
              //       path: '/plan/PlanSetting/planType/planType',
              //       wrappers: ['@/wrappers/auth'],
              //       component: '@/pages/plan/PlanSetting/planType/planType'
              //     },
              //   ]
              // },
              // {
              //   // exact: true,
              //   name: '销售利润分析',
              //   path: '/plan/PlanSetting',
              //   icon: <FolderOpenOutlined />,
              //   wrappers: ['@/wrappers/auth'],
              //   routes: [
              //     {
              //       exact: true,
              //       icon: <BarsOutlined />,
              //       name: '计划类型',
              //       path: '/plan/PlanSetting/planType/planType',
              //       wrappers: ['@/wrappers/auth'],
              //       component: '@/pages/plan/PlanSetting/planType/planType'
              //     },
              //   ]
              // },
            ]
          }
        ],
      },
      /* 采购管理页面 */
      {
        path: '/purchasing',
        name: '采购管理',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/31.png" />
        ),
        routes: [
          {
            path: "/purchasing/purchasing",
            name: " ",
            routes: [
              {
                path: '/purchasing/purchasing',
                name: '采购流程',
                icon: <FileOutlined />,
                component: '@/pages/purchasing/purchasing/purchasing',
              },
              // 供应商管理
              {
                path: '/purchasing/purchase_admin',
                name: "供应商管理",
                icon: <FileOutlined />,
                routes: [
                  {
                    path: '/purchasing/purchase_admin/info',
                    name: "供应商信息",
                    // icon: <FileOutlined />,
                    // component: "@/pages/purchasing/purchase_admin/index",
                    routes: [
                      {
                        path: "/purchasing/purchase_admin/info/inu",
                        name: "新增供应商",
                        component: "@/pages/purchasing/purchase_admin/index",
                      },
                      {
                        path: "/purchasing/purchase_admin/info/inus",
                        name: "供应商列表",
                        component: "@/pages/purchasing/purchase_admin/constars/index"
                      }
                    ]
                  },
                  {
                    path: "/purchasing/purchase_admin/contacts_info",
                    name: "联系人信息",
                    // component: "@/pages/purchasing/purchase_admin/contacts_info/index",
                    routes: [
                      {
                        path: "/purchasing/purchase_admin/contacts_info/iop",
                        name: "新增供应商联系人",
                        component: "@/pages/purchasing/purchase_admin/contacts_info/index"
                      },
                      {
                        path: "/purchasing/purchase_admin/contacts_info/iops",
                        name: "供应商联系人列表",
                        component: "@/pages/purchasing/purchase_admin/contacts_infos/index"
                      },
                    ]
                  },
                  {
                    path: "/purchasing/purchase_admin/contacts",
                    name: "供应商数量统计",
                    // component: "@/pages/purchasing/purchase_admin/contacts_info/index",
                    routes: [
                      {
                        path: "/purchasing/purchase_admin/contacts/iopd",
                        name: "供应商分类分布",
                        component: "@/pages/purchasing/purchase_admin/contactst/inu/index"
                      },
                      {
                        path: "/purchasing/purchase_admin/contacts/iopst",
                        name: "供应商级别分布",
                        component: "@/pages/purchasing/purchase_admin/contactst/iny/index"
                      },
                      {
                        path: "/purchasing/purchase_admin/contacts/iopse",
                        name: "供应商行业分布",
                        component: "@/pages/purchasing/purchase_admin/contactst/uby/index"
                      },
                      {
                        path: "/purchasing/purchase_admin/contacts/iopsq",
                        name: "供应商区域分布",
                        component: "@/pages/purchasing/purchase_admin/contactst/yui/index"
                      },
                      {
                        path: "/purchasing/purchase_admin/contacts/iopsc",
                        name: "每月供应商数量走势",
                        component: "@/pages/purchasing/purchase_admin/contactst/tyu/index"
                      },
                    ]
                  },
                  {
                    path: "/purchasing/purchase_admin/contactsp",
                    name: "联系人数量统计",
                    // component: "@/pages/purchasing/purchase_admin/contacts_info/index",
                    routes: [
                      {
                        path: "/purchasing/purchase_admin/contactsp/bnm",
                        name: "本日生日提醒",
                        component: "@/pages/purchasing/purchase_admin/contactsty/cvb/index"
                      },
                      {
                        path: "/purchasing/purchase_admin/contactsp/zxc",
                        name: "本月生日提醒",
                        component: "@/pages/purchasing/purchase_admin/contactsty/asd/index"
                      },
                      {
                        path: "/purchasing/purchase_admin/contactsp/jkl",
                        name: "联系人行业分布",
                        component: "@/pages/purchasing/purchase_admin/contactsty/ghj/index"
                      },
                      {
                        path: "/purchasing/purchase_admin/contactsp/qwe",
                        name: "联系人区域分布",
                        component: "@/pages/purchasing/purchase_admin/contactsty/rty/index"
                      },
                      {
                        path: "/purchasing/purchase_admin/contactsp/dfg",
                        name: "联系人性别分布",
                        component: "@/pages/purchasing/purchase_admin/contactsty/sdf/index"
                      },
                    ]
                  },
                  {
                    path: "/purchasing/purchase_admin/contactspy",
                    name: "供应商设置",
                    // component: "@/pages/purchasing/purchase_admin/contacts_info/index",
                    routes: [
                      {
                        path: "/purchasing/purchase_admin/contactspy/fgh",
                        name: "设置供应商分类",
                        component: "@/pages/purchasing/purchase_admin/contactstyt/tyu/index"
                      },
                      {
                        path: "/purchasing/purchase_admin/contactspy/wer",
                        name: "设置供应商级别",
                        component: "@/pages/purchasing/purchase_admin/contactstyt/uhb/index"
                      },
                      {
                        path: "/purchasing/purchase_admin/contactspy/rdx",
                        name: "设置供应商行业",
                        component: "@/pages/purchasing/purchase_admin/contactstyt/wsz/index"
                      },
                    ]
                  },

                ]
              },
              // 采购申请
              {
                path: '/purchasing/purchase_requisition',
                name: "采购申请",
                icon: <FileOutlined />,
                routes: [
                  // 新增采购申请
                  {
                    name: "新增采购申请",
                    path: "/purchasing/purchase_requisition/add_apply",
                    component: "@/pages/purchasing/purchase_requisition/add_apply",
                  },
                  // 采购申请列表
                  {
                    path: "/purchasing/purchase_requisition/requisition_list",
                    name: "采购申请列表",
                    component: "@/pages/purchasing/purchase_requisition/requisition_list",
                  },
                  // 采购申请明细表
                  {
                    path: "/purchasing/purchase_requisition/detailed_table",
                    name: "采购申请明细表",
                    component: "@/pages/purchasing/purchase_requisition/detailed_table",
                  }
                ]

              },
              // 采购询价
              {
                path: "/purchasing/say_price",
                name: "采购询价",
                icon: <FileOutlined />,
                routes: [
                  // 询价管理
                  {
                    path: "/purchasing/say_price/say_manage",
                    name: "询价管理",
                    icon: <FileOutlined />,
                    routes: [
                      // 新增采购询价
                      {
                        name: "新增采购询价",
                        path: "/purchasing/say_price/say_manage/add_say",
                        component: "@/pages/purchasing/say_price/say_manage/add_say",
                      },
                      // 待询价列表
                      {
                        name: "待询价列表",
                        path: "/purchasing/say_price/say_manage/price_list",
                        component: "@/pages/purchasing/say_price/say_manage/price_list",
                      },
                      // 全部采购询价列表
                      {
                        name: "全部采购询价列表",
                        path: "/purchasing/say_price/say_manage/all_list",
                        component: "@/pages/purchasing/say_price/say_manage/all_list",
                      },
                      // 采购询价明细表
                      {
                        name: "采购询价明细表",
                        path: "/purchasing/say_price/say_manage/detailed_list",
                        component: "@/pages/purchasing/say_price/say_manage/detailed_list",
                      },
                    ]
                  },
                  // 定价管理
                  {
                    path: "/purchasing/say_price/ding_manage",
                    name: "定价管理",
                    icon: <FileOutlined />,
                    routes: [
                      // 新增采购定价
                      {
                        name: "新增采购定价",
                        path: "/purchasing/say_price/ding_manage/add_say",
                        component: "@/pages/purchasing/say_price/ding_manage/add_say",

                      },
                      // 采购定价列表
                      {
                        name: "采购定价列表",
                        path: "/purchasing/say_price/ding_manage/ding_list",
                        component: "@/pages/purchasing/say_price/ding_manage/ding_list",
                      }
                    ]
                  }
                ],

              },
              // 采购合同
              {
                path: "/purchasing/purchase_contract",
                name: "采购合同",
                icon: <FileOutlined />,
                component: "@/pages/purchasing/purchase_contract/index",
              },
              // 到货质检
              {
                name: "到货质检",
                icon: <FileOutlined />,
                path: "/purchasing/Arrival_zhijian",
                component: "@/pages/purchasing/Arrival_zhijian/index",
              },
              // 采购退货
              {
                name: "采购退货",
                icon: <FileOutlined />,
                path: "/purchasing/return_goods",
                component: "@/pages/purchasing/return_goods/index",
              },
            ]
          }

        ]
      },
      /* 生产管理 */
      {
        path: '/production/production',
        name: '生产管理',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/8.png" />
        ),
        routes: [
          {
            path: '/production/material0',
            name: ' ',
            routes: [
              {
                path: '/production/production',
                name: '生产流程',
                icon: <FileOutlined />,
                component: '@/pages/production/manufacture/index',
              },
              {
                path: '/production/material0',
                name: '新增物料清单',
                icon: <FileOutlined />,
                routes: [
                  {
                    path: '/production/material',
                    name: '新增物料清单',
                    icon: <FileOutlined />,
                    component: '@/pages/production/material/material',
                  },
                ],
              },
              {
                path: '/production/material1',
                name: '生产计划',
                icon: <FileOutlined />,
                routes: [
                  {
                    path: '/production/material01',
                    name: '预生产计划',
                    icon: <FileOutlined />,
                    routes: [
                      {
                        path: '/production/preProductionPlan',
                        name: '新增预生产计划',
                        icon: <FileOutlined />,
                        component:
                          '@/pages/production/material/preProductionPlan',
                      },
                    ],
                  },
                  {
                    path: '/production/material02',
                    name: '生产计划',
                    icon: <FileOutlined />,
                    routes: [
                      {
                        path: '/production/productionPlan',
                        name: '新增生产计划',
                        icon: <FileOutlined />,
                        component: '@/pages/production/material/productionPlan',
                      },
                    ],
                  },
                ],
              },
              {
                path: '/production/material2',
                name: '生产订单',
                icon: <FileOutlined />,
                routes: [
                  {
                    path: '/production/productionOrder',
                    name: '新增生产订单',
                    icon: <FileOutlined />,
                    component: '@/pages/production/material/productionOrder',
                  },
                ],
              },
              {
                path: '/production/material3',
                name: '物料管理',
                icon: <FileOutlined />,
                routes: [
                  {
                    path: '/production/material03',
                    name: '生产领料',
                    icon: <FileOutlined />,
                    routes: [
                      {
                        path: '/production/materialManagement',
                        name: '新增生产领料',
                        icon: <FileOutlined />,
                        component:
                          '@/pages/production/material/preProductionPlan',
                      },
                    ],
                  },
                  {
                    path: '/production/material04',
                    name: '生产补料',
                    icon: <FileOutlined />,
                    routes: [
                      {
                        path: '/production/replenishment',
                        name: '新增生产补料',
                        icon: <FileOutlined />,
                        component: '@/pages/production/material/replenishment',
                      },
                    ],
                  },
                ],
              },
            ],
          },
        ],
      },
      /* 财务管理 */
      {
        path: '/financial/financial_management',
        name: '财务管理',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/23.png" />
        ),
        routes: [
          {
            path: '/financial/financial_management',
            component: '@/pages/financial_management/index',
          },
          {
            path: '/plan6',
            name: ' ',
            routes: [
              {
                // exact: true,
                name: '现金银行',
                path: '/financial/financial_management',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                routes: [
                  {
                    exact: true,
                    name: '直接进账',
                    path: '/financial/financial_management/Income',
                    icon: <ChromeFilled />,
                    wrappers: ['@/wrappers/auth'],
                    routes: [
                      {
                        exact: true,
                        icon: <FolderOpenOutlined />,
                        name: '直接进账',
                        path: '/financial/financial_management/Income',
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/financial_management/Income/index'
                      },
                      {
                        exact: true,
                        icon: <BarsOutlined />,
                        name: '直接进账列表',
                        path: '/financial/financial_management/IncomeList',
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/financial_management/IncomeList/index'
                      }
                    ]
                  },
                  {
                    exact: true,
                    name: '直接出账',
                    path: '/financial/financial_management/Outgoing',
                    icon: <CrownFilled />,
                    wrappers: ['@/wrappers/auth'],
                    routes: [
                      {
                        exact: true,
                        icon: <FolderOpenOutlined />,
                        name: '直接出账',
                        path: '/financial/financial_management/Outgoing',
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/financial_management/Outgoing/index'
                      },
                      {
                        exact: true,
                        icon: <FolderOpenOutlined />,
                        name: '直接出账列表',
                        path: '/financial/financial_management/OutgoingList',
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/financial_management/OutgoingList/index'
                      }
                    ]
                  },
                  {
                    exact: true,
                    name: '账间转账',
                    path: '/financial/financial_management/transfer_accounts',
                    icon: <FolderOpenOutlined />,
                    wrappers: ['@/wrappers/auth'],
                    routes: [
                      {
                        exact: true,
                        icon: <FolderOpenOutlined />,
                        name: '账间转账',
                        path: '/financial/financial_management/transfer_accounts',
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/financial_management/transfer_accounts/index'
                      },
                      {
                        exact: true,
                        icon: <FolderOpenOutlined />,
                        name: '账间转账列表',
                        path: '/financial/financial_management/transfer_accountsList',
                        wrappers: ['@/wrappers/auth'],
                        component: '@/pages/financial_management/transfer_accountsList/index'
                      }
                    ]
                  }
                ],
              },
              {

              },
              {
                // exact: true,
                name: '收款管理',
                path: '/plan/PlanSetting',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                // routes: [
                //   {
                //     exact: true,
                //     icon: <BarsOutlined />,
                //     name: '计划类型',
                //     path: '/plan/PlanSetting/planType/planType',
                //     wrappers: ['@/wrappers/auth'],
                //     component: '@/pages/plan/PlanSetting/planType/planType'
                //   },
                // ]
              },
              {
                // exact: true,
                name: '付款管理',
                path: '/plan/PlanSetting',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                // routes: [
                //   {
                //     exact: true,
                //     icon: <BarsOutlined />,
                //     name: '计划类型',
                //     path: '/plan/PlanSetting/planType/planType',
                //     wrappers: ['@/wrappers/auth'],
                //     component: '@/pages/plan/PlanSetting/planType/planType'
                //   },
                // ]
              },
              {
                // exact: true,
                name: '销售退款',
                path: '/plan/PlanSetting',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                // routes: [
                //   {
                //     exact: true,
                //     icon: <BarsOutlined />,
                //     name: '计划类型',
                //     path: '/plan/PlanSetting/planType/planType',
                //     wrappers: ['@/wrappers/auth'],
                //     component: '@/pages/plan/PlanSetting/planType/planType'
                //   },
                // ]
              },
              {
                // exact: true,
                name: '采购退款',
                path: '/plan/PlanSetting',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                // routes: [
                //   {
                //     exact: true,
                //     icon: <BarsOutlined />,
                //     name: '计划类型',
                //     path: '/plan/PlanSetting/planType/planType',
                //     wrappers: ['@/wrappers/auth'],
                //     component: '@/pages/plan/PlanSetting/planType/planType'
                //   },
                // ]
              },
              {
                // exact: true,
                name: '发票管理',
                path: '/plan/PlanSetting',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                // routes: [
                //   {
                //     exact: true,
                //     icon: <BarsOutlined />,
                //     name: '计划类型',
                //     path: '/plan/PlanSetting/planType/planType',
                //     wrappers: ['@/wrappers/auth'],
                //     component: '@/pages/plan/PlanSetting/planType/planType'
                //   },
                // ]
              },
              {
                // exact: true,
                name: '费用管理',
                path: '/plan/PlanSetting',
                icon: <FolderOpenOutlined />,
                wrappers: ['@/wrappers/auth'],
                // routes: [
                //   {
                //     exact: true,
                //     icon: <BarsOutlined />,
                //     name: '计划类型',
                //     path: '/plan/PlanSetting/planType/planType',
                //     wrappers: ['@/wrappers/auth'],
                //     component: '@/pages/plan/PlanSetting/planType/planType'
                //   },
                // ]
              },
            ]
          }
        ],
      },

      /* 个人 */
      {
        path: '/person',
        name: '个人',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/1.png" />
        ),

        routes: [
          {
            path: '/person/apply',
            name: '我的申请流程',
            icon: <FileOutlined />,
            component: '@/pages/person/apply/apply',
          },
          {
            path: '/person/dealt',
            name: '我的待办流程',
            icon: <FileOutlined />,
            component: '@/pages/person/dealt/dealt',
          },
          {
            path: '/person/done',
            name: '我的已办流程',
            icon: <FileOutlined />,
            component: '@/pages/person/done/done',
          },
          {
            path: '/person/leave',
            name: '我的请假流程',
            icon: <FileOutlined />,
            component: '@/pages/person/leave/leave',

          },

          {
            path: '/person/cancellation',
            name: '我的销假流程',
            icon: <FileOutlined />,
            component: '@/pages/person/cancellation/cancellation',
          },
          {
            path: '/person/attendance',
            name: '我的考勤异常',
            icon: <FileOutlined />,
            component: '@/pages/person/attendance/attendance',
          },
          {
            path: '/person/overtime',
            name: '我的加班申请',
            icon: <FileOutlined />,
            component: '@/pages/person/overtime/overtime',
          },
          {
            path: '/person/evection',
            name: '我的出差申请',
            icon: <FileOutlined />,
            component: '@/pages/person/evection/evection',
          },
        ],
      },
      /* 流程 */
      {
        path: '/technological',
        name: '流程',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/10.png" />
        ),
        routes: [
          {
            path: '/technological/start',
            name: '流程发起',
            icon: <FileOutlined />,
            component: '@/pages/technological/start/index',
          },
          {
            path: '/technological/applys',
            name: '我的申请',
            icon: <FileOutlined />,
            component: '@/pages/person/apply/apply',
          },
          {
            path: '/technological/backlog',
            name: '待办流程',
            icon: <FileOutlined />,
            component: '@/pages/person/dealt/dealt',
          },
          {
            path: '/technological/finished',
            name: '已办流程',
            icon: <FileOutlined />,
            component: '@/pages/person/done/done',
          },
          {
            path: '/technological/passage',
            name: '在途流程',
            icon: <FileOutlined />,
            component: '@/pages/person/dealt/dealt',
          },
          {
            path: '/technological/monitoring',
            name: '流程监控',
            icon: <FileOutlined />,
            component: '@/pages/person/apply/apply',
          },
          {
            path: '/technological/entrust',
            name: '流程委托',
            icon: <FileOutlined />,
            component: '@/pages/technological/entrust/index',
          },
          {
            path: '/technological/be_commissioned',
            name: '被委托流程',
            icon: <FileOutlined />,
            component: '@/pages/technological/be_commissioned/index',
          },
          {
            path: '/technological/unread',
            name: '未读抄送',
            icon: <FileOutlined />,
            component: '@/pages/technological/unread/index',
          },
          {
            path: '/technological/setting',
            name: '流程设置',
            icon: <FileOutlined />,
            component: '@/pages/technological/setting/index',
          },
        ],
      },
      /* 人事 */
      {
        path: '/staffing',
        name: '人事',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/27.png" />
        ),
        routes: [
          {
            path: '/staffing/add1',
            name: ' ',
            routes: [
              {
                path: '/staffing/add',
                name: '人员档案',
                icon: <FileOutlined />,
                component: '@/pages/staffing/add/index',
                routes: [
                  {
                    path: '/staffing/add',
                    name: '新增人员档案',
                    icon: <FileOutlined />,
                    component: '@/pages/staffing/add/index',
                  },
                  {
                    path: '/staffing/lists',
                    name: '人员档案列表',
                    icon: <FileOutlined />,
                    component: '@/pages/staffing/lists/index',
                  },
                  {
                    path: '/staffing/lists',
                    name: '相关设置',
                    icon: <FileOutlined />,
                    component: '@/pages/staffing/lists/index',
                    routes: [
                      {
                        path: '/staffing/arrange',
                        name: '工作排班',
                        icon: <FileOutlined />,
                        component: '@/pages/staffing/arrange/index',
                      },
                      {
                        path: '/staffing/upgrade ',
                        name: '职位等级',
                        icon: <FileOutlined />,
                        component: '@/pages/staffing/upgrade/index',
                      },
                      {
                        path: '/staffing/employee',
                        name: '员工类型',
                        icon: <FileOutlined />,
                        component: '@/pages/staffing/employee/index',
                      },
                    ],
                  },
                ],
              },
            ],
          },
        ],
      },
      /* 计划 */
      {
        path: '/plan',
        name: '计划',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/32.png" />
        ),
        routes: [
          {
            path: '/plan/Daily_plan',
            name: '工作日计划',
            icon: <FileOutlined />,
            component: '@/pages/plan/Daily_plan',
          },
          {
            path: '/plan/Weekly_plan',
            name: '工作周计划',
            icon: <FileOutlined />,
            component: '@/pages/plan/Weekly_plan',
          },
          {
            path: '/plan/monthly_plan',
            name: '工作月计划',
            icon: <FileOutlined />,
            component: '@/pages/plan/monthly_plan',
          },

          {
            path: '/plan/Quarterly_plan',
            name: '工作季计划',
            icon: <FileOutlined />,
            component: '@/pages/plan/Quarterly_plan',
          },
          {
            path: '/plan/bannian',
            name: '工作半年计划',
            icon: <FileOutlined />,
            component: '@/pages/plan/bannian',
          },
          {
            path: '/plan/nianjihua',
            name: '工作年计划',
            icon: <FileOutlined />,
            component: '@/pages/plan/nianjihua',
          },
          {
            path: '/plan/zhijie',
            name: '直接下属计划',
            icon: <FileOutlined />,
            component: '@/pages/plan/zhijie',
          },
          {
            path: '/plan/suoyou',
            name: '所有下属计划',
            icon: <FileOutlined />,
            component: '@/pages/plan/suoyou',
          },
          {
            path: '/plan/gongzuo',
            name: '所有工作计划',
            icon: <FileOutlined />,
            component: '@/pages/plan/gongzuo',
          },
        ],
      },
      /* 资料 */
      {
        path: '/datum',
        name: '资料',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/11.png" />
        ),
        routes: [
          {
            path: '/datum/myname',
            name: '我的资料',
            icon: <BorderOutlined />,
            component: '@/pages/datum/myname/index',
          },
          {
            path: '/datum/centre',
            name: '资料中心',
            icon: <MailOutlined />,
            component: '@/pages/datum/centre/index',
          },
          {
            path: '/datum/classifier',
            name: '资料类别',
            icon: <AlignLeftOutlined />,
            component: '@/pages/datum/classifier/index',
          },
        ],
      },
      /* 报告 */
      {
        path: '/report',
        name: '报告',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/38.png" />
        ),
        routes: [
          {
            path: '/report/ri_report',
            name: '工作日报',
            icon: <FileOutlined />,
            component: '@/pages/report/Daily_plan',
          },
          {
            path: '/report/zhou_report',
            name: '工作周报',
            icon: <FileOutlined />,
            component: '@/pages/report/Weekly_plan',
          },
          {
            path: '/report/yue_report',
            name: '工作月报',
            icon: <FileOutlined />,
            component: '@/pages/report/monthly_plan',
          },

          {
            path: '/report/ji_report',
            name: '工作季报',
            icon: <FileOutlined />,
            component: '@/pages/report/Quarterly_plan',
          },
          {
            path: '/plan/bannian_report',
            name: '工作半年报',
            icon: <FileOutlined />,
            component: '@/pages/plan/bannian',
          },
          {
            path: '/report/zhijie_report',
            name: '直接下属报告',
            icon: <FileOutlined />,
            component: '@/pages/report/zhijie_report',
          },
          {
            path: '/report/suoshu_report',
            name: '所有下属报告',
            icon: <FileOutlined />,
            component: '@/pages/report/suoshu_report',
          },
          {
            path: '/report/suogong_report',
            name: '所有工作报告',
            icon: <FileOutlined />,
            component: '@/pages/report/suogong_report',
          },
          {
            path: '/report/wode_report',
            name: '我的审阅意见',
            icon: <FileOutlined />,
            component: '@/pages/report/wode_report',
          },
        ],
      },
      /* 任务 */
      {
        path: '/task',
        name: '任务',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/34.png" />
        ),
        routes: [
          {
            path: '/task/stateTask',
            name: ' ',
            routes: [
              {
                path: '/task/stateTask/state/state',
                name: '发起任务',
                icon: <FileOutlined />,
                component: '@/pages/task/stateTask/state/state',
                routes: [
                  {
                    path: '/task/stateTask/state/state',
                    name: '发起任务',
                    component: '@/pages/task/stateTask/state/state',

                  },
                  {
                    path: '/task/stateTask/istate',
                    name: '我发起任务',
                    // icon: <FileOutlined />,
                    component: '@/pages/task/stateTask/Istate/istate'
                  }

                ]
              },

              {
                path: '/task/AgentTask/agen',
                name: '代办任务',
                icon: <FileOutlined />,
                component: '@/pages/task/AgentTask/agen'
              },
              {
                path: '/task/doneTesk/done',
                name: '已办任务',
                icon: <FileOutlined />,
                component: '@/pages/task/doneTesk/done'
              },
              {
                path: '/task/infromTask/inform',
                name: '知会任务',
                icon: <FileOutlined />,
                component: '@/pages/task/infromTask/inform'
              },
              {
                path: '/task/monitorTask/monitor',
                name: '任务监控',
                icon: <FileOutlined />,
                component: '@/pages/task//monitorTask/monitor'
              },
              {
                path: '/task/levelTask/level',
                name: '任务级别',
                icon: <FileOutlined />,
                component: '@/pages/task//levelTask/level'
              },
            ]
          },

        ]
      },
      /* 通知 */
      {
        path: '/notice',
        name: '通知',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/13.png" />
        ),
        routes: [
          {
            path: '/notice/notice_main',
            name: '新闻管理',
            icon: <FileOutlined />,
            component: '@/pages/notice/notice_main',
          },
          {
            path: '/notice/notice_manager',
            name: '通知公告管理',
            icon: <FileOutlined />,
            component: '@/pages/notice/notice_manager',
          },
          {
            path: '/notice/notice_classfy',
            name: '通知公告分类',
            icon: <FileOutlined />,
            component: '@/pages/notice/notice_classfy',
          },
        ],
      },
      /* 行政 */
      {
        path: '/administration',
        name: '行政',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/3.png" />
        ),
      },
      /* 系统 */
      {
        path: '/system',
        name: '系统',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/98.png" />
        ),
        routes: [
          // 组织管理
          {
            path: '/system/organization',
            name: " ",
            routes: [
              // 组织管理
              {
                path: '/system/organization/',
                icon: <FileOutlined />,
                name: "组织管理",
                routes: [
                  // 组织机构设置
                  {
                    name: "组织机构设置",
                    path: '/system/organization/organ_set/index',
                    component: '@/pages/system/organization/organ_set/index',
                  },
                  // 岗位设置
                  {
                    name: "岗位设置",
                    path: '/system/organization/post_set/index',
                    component: '@/pages/system/organization/post_set/index',
                  },
                  // 组织机构图
                  {
                    name: "组织机构图",
                    path: '/system/organization/organ_chart/index',
                    component: '@/pages/system/organization/organ_chart/index',
                  },
                ]
              },
              // 角色权限
              {
                path: '/system/role_power',
                icon: <FileOutlined />,
                name: "角色权限",
                routes: [
                  // 新建角色
                  {
                    name: "新建角色",
                    path: '/system/role_power/new_role/index',
                    component: '@/pages/system/role_power/new_role/index',
                  },
                  // 角色列表
                  {
                    name: "角色列表",
                    path: '/system/role_power/roleList/index',
                    component: '@/pages/system/role_power/roleList/index',
                  },
                  // 权限设置
                  {
                    name: "权限设置",
                    path: '/system/role_power/powerList/index',
                    component: '@/pages/system/role_power/powerList/index',
                  },
                ]
              },
              // 用户管理
              {
                path: '/system/user_admin',
                icon: <FileOutlined />,
                name: "用户管理",
                routes: [
                  // 新建用户
                  {
                    name: "新建用户",
                    path: '/system/user_admin/new_user/index',
                    component: '@/pages/system/user_admin/new_user/index',
                  },
                  // 用户列表
                  {
                    name: "用户列表",
                    path: '/system/user_admin/userList/index',
                    component: '@/pages/system/user_admin/userList/index',
                  },
                  // 强制修改密码
                  {
                    name: "强制修改密码",
                    path: '/system/user_admin/editPwd/index',
                    component: '@/pages/system/user_admin/editPwd/index',
                  },
                ]
              },
              // 基础信息
              {
                path: '/system/basic_info',
                name: "基础信息",
                icon: <FileOutlined />,
                routes: [
                  // 全国省市
                  {
                    name: "全国省市",
                    path: "/system/basic_info/all_city/index",
                    component: "@/pages/system/basic_info/all_city/index"
                  },
                  // 公共分类
                  {
                    name: "公共分类",
                    path: "/system/basic_info/public_class",
                    routes: [
                      // 公共分类类别
                      {
                        name: "公共分类类别",
                        path: "/system/basic_info/public_class/class_cate/index",
                        component: "@/pages/system/basic_info/public_class/class_cate/index"
                      },
                      // 公共分类属性
                      {
                        name: "公共分类属性",
                        path: "/system/basic_info/public_class/class_attribute/index",
                        component: "@/pages/system/basic_info/public_class/class_attribute/index"
                      },
                    ]
                  }
                ]
              }
            ]
          }

        ]
      },

      /* 智能建模 */
      {
        path: '/Intelligent',
        name: '智能建模',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/41.png" />
        ),
        routes: [
          {
            path: '/Intelligent/Intelligent_platform',
            name: '表单管理',
            icon: <FileOutlined />,
            component: '@/pages/Intelligent/Intelligent_platform',
          },
          {
            path: '/Intelligent/Intelligent_list',
            name: '列表管理',
            icon: <FileOutlined />,
            component: '@/pages/Intelligent/Intelligent_list',
          },
          {
            path: '/Intelligent/Intelligent_BaoForm',
            name: '报表管理',
            icon: <FileOutlined />,
            component: '@/pages/Intelligent/Intelligent_BaoForm',
          },
        ],
      },
      /* 管理 */
      {
        path: '/Administration',
        name: '管理',
        icon: (
          <img src="https://erpdemo.fanpusoft.com/res/themes/Custom_ERP/topmenu/mdgl.png" />
        ),
      },
    ],
  },
  location: {
    pathname: '/',
  },
};



